/*
 * @Author: Mcc
 * @Date: 2024-07-10 10:05:02
 * @LastEditors: mcc 550539422@qq.com
 * @LastEditTime: 2024-08-06 23:39:16
 * @FilePath: \ft-apply\src\api\index.ts
 * @Description:
 *
 * Copyright (c) 2024 by Mcc, All Rights Reserved.
 */
/*
 * @Author: wmm834578987 53178191+wmm834578987@users.noreply.github.com
 * @Date: 2024-04-26 14:58:37
 * @LastEditors: mcc 550539422@qq.com
 * @LastEditTime: 2024-08-05 11:43:38
 * @FilePath: \ft-apply\src\api\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//import type { queryParam } from "../assets/type/common";
import { get, post } from "./http";
const APi = {
  userLogin: "/applicationUser/userLogin", //登录按钮
  getVerification: "/applicationUser/getVerification", //获取验证码接口
  saveUserResumes: "/applicationUser/saveUserResumes", //移动端用户提交简历
  saveUserVolunteer: "/applicationUser/saveUserVolunteer", //志愿填写
  userIndexStatus: "/applicationUser/userIndexStatus", //用户首页 展示状态
  uploadUserImage: "/applicationUser/uploadUserImage", //上传用户个人图片 重新提交只更新
  uploadAttachment: "/applicationUser/uploadAttachment", //上传用户简历附件 重新提交只更新
  userResumesList: "/applicationUser/userResumesList", //获取用户投递简历列表
  userResumesProcess: "/applicationUser/userResumesProcess", //获取当前简历流程
  selectUniversityDetail: "/config/selectUniversityDetail", //获取高校名单
  selectCommonConfigDetail: "/config/selectCommonConfigDetail", //根据类型获取配置项
  selectTrainingNumberList: "/applicationUser/selectTrainingNumberList", //获取当前未开始的培训期数
  uploadTrainingAgreement: "/applicationUser/uploadTrainingAgreement", //上传用户培训协议
  joinTrainingNumber: "/applicationUser/joinTrainingNumber", //参培确认(参培协议,参培期数)
  uploadSignAgreement: "/applicationUser/uploadSignAgreement", //签约并上传三方签约协议
  selectCommonDictionary: "/config/selectCommonDictionary", //根据类型获取子父级关系
};
export default {
  userLogin: (param: any) => post(APi.userLogin, param),
  getVerification: (param: any) => get(APi.getVerification, param),
  userIndexStatus: (param: any) => get(APi.userIndexStatus, param),
  saveUserVolunteer: (param: any) => post(APi.saveUserVolunteer, param),
  userResumesList: (param: any) => get(APi.userResumesList, param),
  userResumesProcess: (param: any) => get(APi.userResumesProcess, param),
  saveUserResumes: (param: any) => post(APi.saveUserResumes, param),
  uploadUserImage: (param: any) => post(APi.uploadUserImage, param),
  uploadAttachment: (param: any) => post(APi.uploadAttachment, param),
  selectUniversityDetail: (param: any) =>
    get(APi.selectUniversityDetail, param),
  selectCommonConfigDetail: (param: any) =>
    get(APi.selectCommonConfigDetail, param),
  selectTrainingNumberList: (param: any) =>
    get(APi.selectTrainingNumberList, param),
  uploadTrainingAgreement: (param: any) =>
    post(APi.uploadTrainingAgreement, param),
  joinTrainingNumber: (param: any) => post(APi.joinTrainingNumber, param),
  uploadSignAgreement: (param: any) => post(APi.uploadSignAgreement, param),
  selectCommonDictionary: (param: any) => get(APi.selectCommonDictionary, param),
};
